package cn.com.guage.scala.learn.chapter05

object Test05_Lambda1 {
  def main(args: Array[String]): Unit = {
    val fun = (name :String) => println(name)
    fun("瓜哥")
    println(fun("美猴王"))


    val fun2: String => Unit = (name :String) => println(name)

    fun2("瓜哥")
  }
}
